//
//  ToBeProcessedViewController.m
//  Logistics
//
//  Created by enzhoukeji on 2018/8/10.
//  Copyright © 2018年 puyue.com. All rights reserved.
//

#import "ToBeProcessedViewController.h"
#import "ProcessedOrserTVCell.h"
@interface ToBeProcessedViewController ()<UITableViewDelegate,UITableViewDataSource>
@property (nonatomic,strong) UITableView *ordersTV;

@end

@implementation ToBeProcessedViewController
-(UITableView *)ordersTV{
    if (!_ordersTV) {
        _ordersTV = [[UITableView alloc]initWithFrame:CGRectMake(GTFixWidthFlaot(20),  kMainTopHeight , kMainScreen_width  - GTFixWidthFlaot(40), kMainScreen_height - GTFixHeightFlaot(50)) style:UITableViewStyleGrouped];
        _ordersTV.backgroundColor = [UIColor colorWithRed:245/255.0 green:245/255.0 blue:245/255.0 alpha:1];
        _ordersTV.showsVerticalScrollIndicator = NO;
        _ordersTV.dataSource = self;
        _ordersTV.delegate = self;
    }
    return _ordersTV;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    self.navTitle = @"待处理订单";
    [self.view addSubview:self.ordersTV];
    self.view.backgroundColor = [UIColor colorWithRed:245/255.0 green:245/255.0 blue:245/255.0 alpha:1];
    // Do any additional setup after loading the view.
}
-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{
    return 10;
}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 1;
}
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    ProcessedOrserTVCell *cell=[tableView dequeueReusableCellWithIdentifier:@"ProcessedOrserTVCell"];
    if (!cell) {
        cell=[[ProcessedOrserTVCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"ProcessedOrserTVCell"];
    }
    cell.layer.cornerRadius = 5.0;
    return cell;
}
-(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section{
    return nil;
}
-(CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section{
    return 0.01;
}
- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section{
    return nil;
}
-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {
        return GTFixHeightFlaot(10);
}
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
    return GTFixHeightFlaot(100);
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
